﻿using Polaris.Domain.Model.Dto.Sys_Dictionary.Request;
using Polaris.Domain.Model.Dto.Sys_Dictionary.Response;
using Polaris.Domain.Model.Entity.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Polaris.Domain.Interfaces.Admin
{
    public interface ISys_Dictionary
    {
        /// <summary>
        /// 创建字典
        /// </summary>
        /// <param name="create"></param>
        /// <returns></returns>
        Task CreateDictionary(CreateDictionaryRequest create, Guid? userId);

        /// <summary>
        /// 修改字典
        /// </summary>
        /// <param name="update"></param>
        /// <returns></returns>
        Task UpdateDictionary(UpdateDictionaryRequest update, Guid? userId);

        /// <summary>
        /// 删除字典
        /// </summary>
        /// <param name="id"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task DeleteDictionary(string id,Guid? userId);

        /// <summary>
        /// 获取字典列表
        /// </summary>
        /// <param name="search"></param>
        /// <returns></returns>
        Task<PaginationInfo<DictionaryInfoResponse>> GetDictionaryList(SearchDictionaryRequest search);

        /// <summary>
        /// 根据id获取字典详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<DictionaryInfoResponse> GetDictionaryById(string id);



    }
}
